package tyk.pojo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component("people1")
public class People {

    @Value("汤亚康")
    private String name;
    @Autowired
    @Qualifier("phone1")
    private Phone phone;
    @Autowired
    @Qualifier("pc1")
    private PC pc;

    public String getName() {
        return name;
    }

    public Phone getPhone() {
        return phone;
    }

    public PC getPc() {
        return pc;
    }

    @Override
    public String toString() {
        return "People{" +
                "name='" + name + '\'' +
                ", phone=" + phone +
                ", pc=" + pc +
                '}';
    }
}
